package com.sunb2b.entity;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

/**
 * CompanyMember entity. @author MyEclipse Persistence Tools
 */

public class CompanyMember extends Member {

    // Fields
	
	@Length(max=20, message="长度必须小于20")
    private String legalPerson;
	@NotEmpty(message="不能为空")
    private String type;
    
    private String website;
    @Length(max=10, message="长度必须小于10")
    private String regNo;
    
    private String biz;

    // Constructors

    /** default constructor */
    public CompanyMember() {
    }

    /** full constructor */
    public CompanyMember(String legalPerson,
            String type, String website, String regNo, String biz) {
        this.legalPerson = legalPerson;
        this.type = type;
        this.website = website;
        this.regNo = regNo;
        this.biz = biz;
    }

    public String getLegalPerson() {
        return this.legalPerson;
    }

    public void setLegalPerson(String legalPerson) {
        this.legalPerson = legalPerson;
    }

    public String getType() {
        return this.type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getWebsite() {
        return this.website;
    }

    public void setWebsite(String website) {
        this.website = website;
    }

    public String getRegNo() {
        return this.regNo;
    }

    public void setRegNo(String regNo) {
        this.regNo = regNo;
    }

    public String getBiz() {
        return this.biz;
    }

    public void setBiz(String biz) {
        this.biz = biz;
    }

}